﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ucGiavang.ascx.cs" Inherits="Giaiphongmatbang.UserControl.ucGiavang" %>

<style type="text/css">
    .gv
    {
    	width: 216px;height:30px;line-height:30px;
    	background:#2FA0E1;
    	font-size:12px;
	    font-weight:bold;
	    font-family: arial, helvetica;
	    color:#FFF;
	    padding-left:4px;
	    text-transform:uppercase
    }
    #table tr td
    {
        padding-left:4px;	
    }
</style>
<script type="text/javascript" src="http://210.245.0.148/Library/Library.js"></script>
<script type="text/javascript" language="JavaScript" src="http://vnexpress.net/Service/Forex_Content.js"></script>

<div id="table">
    <div class="gv">
        <div class="nl" style="width:80px;">
            Giá vàng
        </div>
        <div class="nr" style="width:135px; text-transform:none; padding-top:8px;">
            ĐVT: triệu đồng/lượng
        </div>
        <div class="clear"></div>
    </div>    
    <div style="width: 220px">        
        <table width="220px" border="1" style="border-collapse: collapse">
            <tr>
                <td>
                    Loại
                </td>
                <td>
                    Mua
                </td>
                <td>
                    Bán
                </td>
            </tr>
            <script type="text/javascript" language="JavaScript" src="http://vnexpress.net/Service/Gold_Content.js"></script>
            <script type="text/javascript" language="JavaScript">
                document.write("<tr><td>SBJ</td><td>" + vGoldSbjBuy + "</td><td>" + vGoldSbjSell + "</td></tr>");
                document.write("<tr><td>SJC</td><td>" + vGoldSjcBuy + "</td><td>" + vGoldSjcSell + "</td></tr>");
            </script>
        </table>
    </div>
    <div class="gv">
        Tỷ giá ngoại tệ</div>    
    <table width="220px" border="1" style="border-collapse: collapse">
        <script type="text/javascript" language="JavaScript">
            document.write("<tr><td>" + vForexs[0] + " </td><td >" + vCosts[0] + " </td></tr>");
            document.write("<tr><td>" + vForexs[1] + " </td><td >" + vCosts[1] + " </td></tr>");
            document.write("<tr><td>" + vForexs[2] + " </td><td >" + vCosts[2] + "</td></tr>");
            document.write("<tr><td>" + vForexs[3] + " </td><td > " + vCosts[3] + "</td></tr>");
            document.write("<tr><td>" + vForexs[4] + "</td><td > " + vCosts[4] + "</td></tr>");
            document.write("<tr><td>" + vForexs[5] + "</td><td > " + vCosts[5] + "</td></tr>");
            document.write("<tr><td>" + vForexs[6] + "</td><td > " + vCosts[6] + "</td></tr>");
            document.write("<tr><td>" + vForexs[7] + " </td><td > " + vCosts[7] + "</td></tr>");
            document.write("<tr><td>" + vForexs[8] + "</td><td >" + vCosts[8] + "</td></tr>");
        </script>
    </table>
</div>
